package com.zzy.dao;

import com.zzy.entity.FilePath;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PathDao {
    @Select("select * from filepath")
    List<FilePath> allPath();
    @Insert("insert into filepath (url_path,title) values(#{urlPath},#{title})")
    Integer save(FilePath filePath);
}
